import java.util.*;
public class Main{
    public static int solution(int a,int b){

        int min;
        if(a>b){
            min=b;
        }else{
            min=a;
        }
        int i=min;
        //先求出两个数的较小值
        //两个数的较小值递增
        while(true){
            //如果i能整除两个数的较小值跳出循环
            if(i%a==0&&i%b==0){
                break;
            }
            i++;
        }
        //返回最小公倍数
        return i;
    }

    public static void main(String[]args){
        Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        int c=solution(a,b);
        System.out.println(c);
    }
}